package com.slipper.system.api.employee.bo;

import java.util.Date;
import java.util.List;

import com.slipper.common.excel.ExcelColumn;
import com.slipper.common.gson.GsonExclude;
import com.slipper.system.api.organization.bo.OrganizationBO;
import org.springframework.web.multipart.MultipartFile;

import com.slipper.common.bo.CommonBO;
import com.slipper.common.excel.ExcelInfo;

/**
 * 员工信息表
 *
 * @date 2020-03-26 14:59:54
 */
@ExcelInfo(startRow = 4)
public class EmployeeBO extends CommonBO {
    private static final long serialVersionUID = 1L;

    /** 01  在岗 */
    public static final String STATUS_ON = "01";

    /* 主键ID */
    private String id;
    /* 主键ID */
    private String[] ids;
    /* 组织机构ID */
    private String organizationId;
    private String[] organizationIds;
    private String strOrganizationIds;
    /* 编号 */
    private String code;
    /* 姓名 */
    @ExcelColumn(index = 1, nullable = false)
    private String name;
    /* 性别 */
    @ExcelColumn(index = 4, nullable = false, dicKey = "dicSex")
    private String sex;
    @ExcelColumn(index = 30)
    private String mobile;
    /* 职务 */
    @ExcelColumn(index = 2, nullable = false)
    private String duty;
    private String position;
    /* 登录名 */
    private String username;
    /* 登录密码 */
    @GsonExclude
    private String password;
    /* 状态 */
    @ExcelColumn(index = 27, nullable = false, dicKey = "dicEmployeeStatus")
    private String status;
    /*排序*/
    private Integer ordinal;
    /*是否有效*/
    private String valid;
    /* 更新时间 */
    private Date updateTime;
    /* 创建时间 */
    private Date createTime;

    private String orgCode;

    @ExcelColumn(index = 3,nullable = false)
    private String organizationName;
    private String roleId;
    private String roleNames;

    private String orgId;
    private String orgName;

    private String roleIds;

    private String captcha;
    private boolean superAdmin;
    private String orgType;
    private String token;
    private List<OrganizationBO> organizationList;

    /* 文件导入 */
    private MultipartFile file;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String[] getIds() {
        return ids;
    }

    public void setIds(String[] ids) {
        this.ids = ids;
    }

    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    public String[] getOrganizationIds() {
        return organizationIds;
    }

    public void setOrganizationIds(String[] organizationIds) {
        this.organizationIds = organizationIds;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getDuty() {
        return duty;
    }

    public void setDuty(String duty) {
        this.duty = duty;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getOrdinal() {
        return ordinal;
    }

    public void setOrdinal(Integer ordinal) {
        this.ordinal = ordinal;
    }

    public String getValid() {
        return valid;
    }

    public void setValid(String valid) {
        this.valid = valid;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getOrganizationName() {
        return organizationName;
    }

    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getRoleNames() {
        return roleNames;
    }

    public void setRoleNames(String roleNames) {
        this.roleNames = roleNames;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(String roleIds) {
        this.roleIds = roleIds;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public boolean isSuperAdmin() {
        return superAdmin;
    }

    public void setSuperAdmin(boolean superAdmin) {
        this.superAdmin = superAdmin;
    }

    public String getOrgType() {
        return orgType;
    }

    public void setOrgType(String orgType) {
        this.orgType = orgType;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public List<OrganizationBO> getOrganizationList() {
        return organizationList;
    }

    public void setOrganizationList(List<OrganizationBO> organizationList) {
        this.organizationList = organizationList;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public String getStrOrganizationIds() {
        return strOrganizationIds;
    }

    public void setStrOrganizationIds(String strOrganizationIds) {
        if (strOrganizationIds != null) {
            this.organizationIds = strOrganizationIds.split(",");
        }
    }
}
